As part of the BBC programme, the duke and duchess of Cambridge spoke about the plight of frontline workers